package com.practice.service.user;

import com.practice.domain.user.User;
import com.practice.exception.PracticeException;
import com.practice.service.BaseService;

/**
 * Created by Administrator on 2016/8/20.
 */
public interface UserService extends BaseService {
  User detail(Long id) throws PracticeException;

  User findByEmail(String email) throws PracticeException;

  void checkEmail(String email) throws PracticeException;

  User findByUsername(String username) throws PracticeException;

  void checkUsername(String username) throws PracticeException;

  User create(String username, String email, String password, String confirmPassword) throws PracticeException;
}
